
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/mw_simplenews/css/style.css' ?>">

<title>< ?php echo $this->getTitle() ?></title>
<title>< ?php echo $this->getKeywords() ?></title>
<title>< ?php echo $this->getDescription() ?></title>

<h3 class="lt-h3">
	<a href="<?php echo Mage::getUrl('simplenews/index/index') ?>">Home</a> &raquo; <a href="<?php echo Mage::getUrl('simplenews/category/index') ?>">News</a> &raquo;
	<a href=""><?php echo $this->getCategory() ?></a>
</h3>


<!-- show the pagination -->
	<div class="pages">
    <span><?php echo $this->__('Page : ');?></span>
	    <?php //echo $this->getPagerHtml($this->getListnews()); ?>
	    <?php //echo $this->getPagerHtml() ?> <!--Add Paging-->
	</div>
	
<!-- end.show paginatin -->

<?php 
	// $isShowImg : parameter = 1, if you want to show img in list view
	$isShowImg = Mage::getStoreConfig('simplenews_section/simplenews_group/showimg_field');
	// $sizeImg : is parameter content value of size Img , that you want to show
	$sizeImg = Mage::getStoreConfig('simplenews_section/simplenews_group/thumbsize_field');
	list($widthImg ,$heightImg) = split('[/.-]', $sizeImg);
 ?>
<ul class="ul-list">
	<?php
	$lists = $this->getListnews();
	foreach ($lists as $list) {
		if ($list['status']==1) { ?>
				<li class="li-list">
					<?php 
						if($isShowImg==1){ 
							?>
							<div class="lil-left">

								<img style=" width: <?php echo $widthImg.'px' ?>; height: <?php echo $heightImg.'px' ?>;" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'mw_simplenews/'.$list['images'] ?>" alt="">	
							</div>
						<?php } ?>
					<div class="lil-right">
						<a class="lil-title" href=" <?php echo Mage::getUrl('simplenews/news/index',array((id)=>$list['news_id']))?> ">
							<?php echo $list['title'];  ?>
						</a>
						<p>
							<?php 
								echo $list['summary'];
							 ?>
						</p>
					</div>
				</li>
	  <?php	} ?>
	<?php } ?>
</ul>
